#ifndef MEASURE_H
#define MEASURE_H

#include <QDialog>
#include "sql.h"
#include <QTableWidgetItem>
#include "msginf.h"

namespace Ui {
class Measure;
}

class Measure : public QDialog
{
    Q_OBJECT

public:
    explicit Measure(CSql* sql,QWidget *parent = nullptr);
    ~Measure();
public slots:
    void myCommond();
    void cellDBClicked(int row, int column);
    void onCurrentIndexChanged(int idx);
    void onLayerCurrentIndexChanged(int idx);
private:
    Ui::Measure *ui;
    CSql* m_Sql;
    void showPrj();
    void showLayer(int idx);
    void showPara();
    bool doSave();
    int addint;
    std::map<std::string,std::string> delmap;
    std::map<int,std::string> modifymap;
};

#endif // MEASURE_H
